<?php
echo '<script type="text/javascript">';
require APP . WEBROOT_DIR . DS . "js" . DS . "validate" . DS . "pricetypes_reception_index.js";
echo '</script>';
?>
<div class="pricetypesReceptions index">
    <h2><?php __('Configuración de Precios de Presentaciones'); ?></h2>
    <?php echo $this->Form->create('PricetypesReception'); ?>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th>Tipo de Precio</th>
            <th>Precio a Cliente por Personaje</th>
            <th>Pago a Empleado</th>
        </tr>
        <?php
        $i = 0;
        foreach ($pricetypes as $tipo):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
            <tr<?php echo $class; ?>>
                <td><?php echo $tipo['Pricetype']['name']; ?>&nbsp;</td>
                <td><?php echo $this->Form->input('client_cost_'.$tipo['Pricetype']['id'], array('label'=>false, 'div'=>false, 'class'=>'validCost'));?></td>
                <td><?php echo $this->Form->input('employee_cost_'.$tipo['Pricetype']['id'], array('label'=>false, 'div'=>false, 'class'=>'validCost'));  ?>&nbsp;</td>
            </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $this->Form->end(__('Guardar', true)); ?>
</div>